<!DOCTYPE html>
<!--
Copyright 2017 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<link rel="import" href="/dashboard/elements/speed-releasing-page.html">
<link rel="import" href="/dashboard/static/simple_xhr.html">
<link rel="import" href="/dashboard/static/testing_common.html">

<link rel="import" href="/tracing/base/unit.html">
<link rel="import" href="/tracing/core/test_utils.html">

<script>
'use strict';

tr.b.unittest.testSuite(function() {
  const testOptions = {
    tearDown() {
      testing_common.clearXhrMock();
    }
  };

  test('instantiate_WithList', function() {
    const mockResponse = {
      'list': ['report1', 'report2', 'report3', 'report4'],
      'show_list': true,
    };
    uri.getPathName = function() { return ''; };
    testing_common.addXhrMock('/speed_releasing/?=',
        JSON.stringify(mockResponse));
    const page = document.createElement('speed-releasing-page');
    this.addHTMLOutput(page);
  }, testOptions);
});
</script>
